package com.chen.facemanager.service;

import com.chen.facemanager.bean.User;

import java.util.List;

public interface UserService {

    User login(String phone,String password);

    User getUserByUserId(Long id);

    User reg(String phone, String password,String macid,String androidid,String imei1,String imei2,String imsi1,String imsi2,String deviceinfo);

    boolean saveInfo(Long id,String name,String idNumber,String address,String sex,String photo,String birthday);

    boolean updatePhone(String id, String phone);

    boolean updatePwd(String id, String password);

    boolean samePwd(String id, String oldpwd);

    boolean resetPwd(String phone, String password);

    List<User> findUsersByPhone(String phone);
}
